﻿using System;
using System.Collections;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Skyworth.CRM.Service.Entity;

namespace Skyworth.CRM.Service.IDAL
{
    public interface IModulesDAL
    {
        void Add(Modules model);
        void Update(Modules model);
        DataTable GetModuleFunc(int userId);
        DataTable GetModules(int userId, int functionId);
        DataTable Query(string strWhere);
        DataTable GetPagesWithFunctionAndAuthorityByRole(int moduleId,int roleId);
        DataTable GetModules();
        //DataTable GetPagesAuthorityByUser(int parentPageId);
        DataTable GetPagesAuthorityByUser(int parentPageId, int userId);
        DataTable GetPagesWithFinalFunctionAndAuthorityByUser(int moduleId, int userId);
    }
}